/*
 * @lc app=leetcode.cn id=1672 lang=typescript
 *
 * [1672] 最富有客户的资产总量
 */

// @lc code=start
function maximumWealth(accounts: number[][]): number {
    let max = 0;
    for (let i = 0; i < accounts.length; i++) {
        const element = accounts[i];
        let sum = element.reduce((col, cur) => col + cur, 0);
        max = Math.max(sum, max);
    }
    return max;
}
// @lc code=end
